package com.thirteenClassics.context;

public class BaseContext {

    public static ThreadLocal<Long> threadLocal = new ThreadLocal<>();
    public static ThreadLocal<String> threadLocal2 = new ThreadLocal<>();

    public static String getCurrentLang() {
        return threadLocal2.get();
    }

    public static void setCurrentLang(String lang) {
        threadLocal2.set(lang);
    }

    public static void removeCurrentLang() {
        threadLocal2.remove();
    }

    public static Long getCurrentId() {
        return threadLocal.get();
    }

    public static void setCurrentId(Long id) {
        threadLocal.set(id);
    }

    public static void removeCurrentId() {
        threadLocal.remove();
    }

}
